package br.com.pedido.www;

public class MaoDeObraServicoPortTypeProxy implements br.com.pedido.www.MaoDeObraServicoPortType {
  private String _endpoint = null;
  private br.com.pedido.www.MaoDeObraServicoPortType maoDeObraServicoPortType = null;
  
  public MaoDeObraServicoPortTypeProxy() {
    _initMaoDeObraServicoPortTypeProxy();
  }
  
  public MaoDeObraServicoPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initMaoDeObraServicoPortTypeProxy();
  }
  
  private void _initMaoDeObraServicoPortTypeProxy() {
    try {
      maoDeObraServicoPortType = (new br.com.pedido.www.MaoDeObraServicoServiceLocator()).getMaoDeObraServicoServicePort();
      if (maoDeObraServicoPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)maoDeObraServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)maoDeObraServicoPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (maoDeObraServicoPortType != null)
      ((javax.xml.rpc.Stub)maoDeObraServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public br.com.pedido.www.MaoDeObraServicoPortType getMaoDeObraServicoPortType() {
    if (maoDeObraServicoPortType == null)
      _initMaoDeObraServicoPortTypeProxy();
    return maoDeObraServicoPortType;
  }
  
  public br.com.pedido.www.MaoDeObraServicoResponse gerarAtribuicaoMO(br.com.pedido.www.MaoDeObraServicoRequest params) throws java.rmi.RemoteException{
    if (maoDeObraServicoPortType == null)
      _initMaoDeObraServicoPortTypeProxy();
    return maoDeObraServicoPortType.gerarAtribuicaoMO(params);
  }
  
  
}